﻿<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="utf-8" />
	<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
	 <meta name="viewport" content="width=device-width, initial-scale=1, minimum-scale=1, maximum-scale=1">
	<title>订单详情-PHPMall</title>
	<meta name="keywords" content=""/>
	<meta name="description" content=""/>
	<meta name="viewport" content="width=device-width; initial-scale=1.0" />	
	<link rel="stylesheet" href="/static/user/css/base.css" />
<link rel="stylesheet" href="/static/user/css/member.css" />
	<script src="/static/user/js/jquery-2.1.4.min.js"></script>
	<script src="/static/user/js/jquery-migrate-1.2.1.min.js"></script>
</head>
<body>	


	<div class="com-top-nav w">
	<div class="wcp-wrap">
	</div>
</div>
	{include file='index@public/header'}
	
<div id="member_content">
	<div class="w clearfix">		
		<div class="list_crumb">
		<ul class="list_crumb_list">
			<li class="classify"><a href="/">首页</a><i class="crumb_arrow"></i></li>			
				<li class="classify">
						<a href="/member/order_member/index">我的订单</a>				
						<i class="crumb_arrow"></i>			
				</li>			
			<li class="classify">订单详情</li>			
		</ul>
	</div>	
		
		<div id="order_show">
			
			<!--订单状态-->
			<div class="order_status">
					<ul>
						<li>
							订单号： {$order.order_id}<i></i>
							订单状态：
							{switch $order.status }
							{case 1 }
							<span class="green">待付款</span>
							{/case}
							{case 2 }
							已付款
							{/case}
							{case 3}
							<span class="green">未发货</span>
							{/case}
							{case 4}
							<a class="blue">已发货</a>
							{/case}
							{case 5}
							<a class="blue">交易成功</a>
							{/case}
							{case 6}
							<a class="blue">交易关闭</a>
							{/case}
							{default /}订单异常
							{/switch}
						</li>
					</ul>	
							
			</div>
			<!--订单状态 end -->
			<?php $goods = json_decode($order['goods_item']) ;?>
			<?php $address = json_decode($order['address']) ;?>
			<h2 class="boxh2">订单信息</h2>
			<div class="box">
				<ul class="order_contactinfo">
					 						<li><b>收货人信息</b>
							<span id="js_addreeshow" rel="">
							
			            	<?php echo $address->city ;?>，<?php echo $address->country ;?>，<?php echo $address->detail ;?>, <?php echo $address->detailed ;?>，
								<?php echo $address->name ;?>，
								<?php echo $address->province ;?>							 </span>
						</li>
						<li><b>货运方式</b>
							<span>						
			            	EMSS							</span>
						</li>
					 					<li>
						<b>付款方式</b>
						<span id="js_payshow" pay="1" bank="200">							
							微信
						</span>
					</li>
					
				</ul>
				<div class="order_pro">
							<h3>商品清单</h3>
							<table width="100%" cellspacing="0" cellpadding="0" border="0">
								<tbody>
									<tr>
										<th colspan="2" class="th1">商品名称</th>
										<th>货号</th>
										<th>单价</th>
										<th>商品数量</th>
									</tr>
									<?php foreach($goods as $v_doods): ?>
									<?php $goodss = $v_doods->goods;?>
									<tr>
										<td class="td1">
											<?php $id = $goodss->id;?>

											<a class="img60"  href="{:url('index/Goods/index',array('id'=>$id))}"target="_blank">
													<img class="jsimg"   src="/static/uploads/<?php echo $goodss->og_thumb?>"></a>
												</td>
												<td class="td2 gray">
													<a><?php echo $goodss->goods_name?></a>
													<br>
												</td>
												<td>
													<?php echo $goodss->goods_code?>
												</td>
												<td class="redprice oof">

									              	&yen;
													<?php echo $goodss->shop_price?>
												</td>
												<td>	<?php echo $v_doods->number?></td>
									</tr>
								<?php endforeach;?>
								</tbody>
						</table>
					
						
							<div class="order_price" id="js_order_price">
							<ul>													             
				              	<li><b>总价：</b>
				              		<i>
				                		&yen; {$order.payment}
				                	</i>
				                </li>						          
						       	<li><b>运费：</b>
				              		<i>
				                		&yen; 0.00				                	</i>
				                </li>	
				                
				                				                						
							</ul>
							
							<div class="total"><em>应付金额：</em>
								<b class="red">
									
									&yen; {$order.payment}							</b>
							</div>
						
					  	 </div>
						
						
						
						
				</div>
			</div>	
		</div>
		
	</div>
</div>



	<div class="footer">
		<div class="serverbox w clearfix">
			<ul class="server-list clearfix">
				<li class="item-first">
					<h4>平台公告</h4>
											<a href="/article/12">关于中秋放假公告 </a>
											<a href="/article/11">关于平台晒单公告 </a>
											<a href="/article/10">防台风“鲇鱼”--配送延迟公告 </a>
											<a href="/article/1">关于双11配送延迟 </a>
									</li>
				<li>
					<h4>新手帮助</h4>
											<a href="/article/8">退换货说明</a>
											<a href="/article/7">售后政策</a>
											<a href="/article/6">在线支付</a>
											<a href="/article/5">预存款使用说明</a>
											<a href="/article/4">积分说明</a>
											<a href="/article/3">购物流程</a>
									</li>
				<li>
					<h4>售后服务</h4>
											<a href="/article/19">如何办理退换货</a>
											<a href="/article/18">退款详细说明</a>
											<a href="/article/17">退换货政策说明</a>
									</li>
				<li>
					<h4>关于我们</h4>
											<a href="/article/23">人才招聘</a>
											<a href="/article/22">联系我们</a>
											<a href="/article/20">关于我们</a>
									</li>
			</ul>				
			<div class="custom-service">
				<h4>在线咨询</h4>
				<span class="server-tel">400-881-8283</span>
				<a href="http://wpa.qq.com/msgrd?v=3&amp;uin=1093157171&amp;site=qq&amp;menu=yes" target="_blank" class="server-btn"><i class="icon icon-zxkf"></i><span>在线客服</span></a>
				<h4>微信公众号</h4>
				<a class="weixin-code" href="javascript:;">
					<img src="/static/user/picture/qrcode-90x90.jpg" />
				</a>
			</div>	
		</div>
		
		<div class="company-cr w-full">
			<div class="company-info w clearfix">
					<span class="copyright">COPYRIGHT 2015-2018</span>

					<span class="company-name">艺创陶瓷</span>
					
					<span class="company-icp">闽ICP备15012617号</span>

				<div><a href="#" target="_blank">网站地图</a><a href="#" target="_blank">标签</a><a href="#" target="_blank">友情链接</a></div>
			</div>
			
		</div>
	</div>


</body>
<link href="/static/user/css/default.css" rel="stylesheet" type="text/css" />
<script src="/static/user/js/artdialog.js"></script>
<script src="/static/user/js/iframetools.js"></script>



<script src="/static/user/js/common.js"></script>

<script>	

$('#history').load('/member/OrderMember/history/id/1l8kr3lkgz');

$("#trace_b").click(function(){
	var order_id=$(this).attr('order_id');
	$.ajax({
		url: '/member/OrderMember/get_trace_info', 
		type: 'post',	
		data: {
			order_id:order_id
		},
		dataType: 'json',
		beforeSend: function() {
			$('#trace_b').attr('disabled', true);
			art.dialog({id:'loading',lock: true,title:'加载中'});	
		},	
		complete: function() {
			$('#trace_b').attr('disabled', false);
			art.dialog.list['loading'].close();	
		},			
		success: function(json) {			
			
			if(json.error){
				art.dialog({
					content:json['error'],
					lock: true,
					ok: function () {}				    
				});	
			}else if(json.success){			
				$('#trace').empty();
				$('#trace').append('<iframe name="kuaidi100" src="'+json.url+'" width="600" height="380" marginwidth="0" marginheight="0" hspace="0" vspace="0" frameborder="0" scrolling="no"></iframe>');
			}else{
				art.dialog({
					content:json['msg'],
					lock: true,
					ok: function () {}				    
				});	
			}
		},
		error: function(xhr, ajaxOptions, thrownError) {
			$('#trace_b').attr('disabled', true);
			alert(thrownError + "\r\n" + xhr.statusText + "\r\n" + xhr.responseText);
		}
	});
	
});


</script>

</html>